    @foreach($layouts as $layout)
        <div class="form-group col-sm-12">
            <div class="form-group col-sm-1">
                @if($layout->image_type==1)
                    大图
                @elseif($layout->image_type==2)
                    小条形图
                @elseif($layout->image_type==3)
                    两张图
                @elseif($layout->image_type==4)
                    大条形图(750*330)
                @elseif($layout->image_type==5)
                    三张图
                @endif
            </div>
            <div class="form-group col-sm-1">
                @if($layout->skip_type==1)
                    跳转分类
                @elseif($layout->skip_type==2)
                    跳转商品
                @elseif($layout->skip_type==3)
                    跳转文章
                @elseif($layout->skip_type==4)
                    跳转自定义列表
                @endif
            </div>
            <div class="form-group col-sm-2">
                ID:{!! $layout->skip_id?$layout->skip_id:'无' !!}
                ID2:{!! $layout->skip2_id?$layout->skip2_id:'无' !!}
                ID3:{!! $layout->skip3_id?$layout->skip3_id:'无' !!}
            </div>
            {{--<td>@tpic($layout->image)</td>--}}
            {{--<td>@tpic($layout->image2)</td>--}}
            {{--<td>@tpic($layout->image3)</td>--}}

            <div class="form-group col-sm-1">
            排序:{!! $layout->sort !!}
            </div>

            <div class="form-group col-sm-6">

                @if($layout->image_type==1)
                    @mpic($layout->image)
                @elseif($layout->image_type==2)
                    <img src='{{$layout->image}}' alt='' style='height: 50px'>
                @elseif($layout->image_type==3)
                    @if($layout->skip_type==1)
                        @wpic($layout->image)
                        @wpic($layout->image2)
                    @elseif($layout->skip_type==2)
                        @wpic($layout->image)
                        @wpic($layout->image2)
                    @endif

                @elseif($layout->image_type==4)
                    <img src='{{$layout->image}}' alt='' style='height: 50px'>
                @elseif($layout->image_type==5)
                    @wpic($layout->image)
                    @wpic($layout->image2)
                    @wpic($layout->image3)
                @endif
            </div>

            <div class="form-group col-sm-1">
                {!! Form::open(['route' => ['layouts.destroy', $layout->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    {{--<a href="{!! route('layouts.show', [$layout->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
                    <a href="{!! route('layouts.edit', [$layout->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </div>
        </div>
    @endforeach
